def Csum(num1,num2):
    return num1+num2
def Csub(num1,num2):
    return num1-num2
def Cmul(num1,num2):
    return num1*num2
def Cdiv(num1,num2):
    if num2==0:
        print("被除数不能为0")
        exit(0)
    else:
        return num1/num2
flag=True
while flag:
    num1=int(input("请输入一个数"))
    num2=int(input("请输入另一个数"))
    choice=input("请输入运算符（+-*/）")
    if choice=="+":
        print(f"{num1}+{num2}={Csum(num1,num2)}")
    elif choice=="-":
        print(f"{num1}-{num2}={Csub(num1,num2)}")
    elif choice=="*":
        print(f"{num1}*{num2}={Cmul(num1,num2)}")
    elif choice=="/":
        print(f"{num1}/{num2}={Cdiv(num1,num2)}")
    if input("是否结束（y/n）")in ["y" , "Y"]:
        flag=False